package com.epoint.nio;

import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.StandardCharsets;

public class NioUtil {

    public static String getStr(ByteBuffer buffer){
        CharBuffer decode = StandardCharsets.UTF_8.decode(buffer);
        return decode.toString();
    }

}
